package com.likai.jarscms.dao;


import java.util.List;

import com.likai.jarscms.pojo.TagBean;
import org.apache.ibatis.annotations.Param;

/**
 * Created by likai on 2018/10/11.
 */
public interface ITagMapper {

    /**
     * 查询列表
     * @return
     */
    public List<TagBean> selectList() ;

    /**
     * 根据ID查询信息
     * @param uuid
     * @return
     */
    public TagBean selectTagById(String uuid) ;

    /**
     * 根据Name查询信息
     * @param name
     * @return
     */
    public TagBean selectTagByName(String name) ;

    /**
     * 添加信息
     * @param bean
     * @return
     */
    public int insertDynamic(TagBean bean) ;

    /**
     * 根据ID更新信息
     * @param bean
     * @return
     */
    public int updateDynamic(TagBean bean) ;

    /**
     * 随机获取n个标签
     * @param n
     * @return
     */
    public List<TagBean> randomList(@Param(value = "num") Integer num) ;
    
}
